import Vue from 'vue'
import store from '@/store'

export default function () {
    // obj指令的当前对象
    Vue.directive('showBtn', {
        inserted(el, binding) {
        
          let buttons = store.state.user.buttons
      
          if (!buttons.includes(binding.value)) {
            el.parentNode.removeChild(el)
         
          }
      
        }
      }
      )
    // value对象中的信息


}
